logo头像
Snippet 博客主题

wireguard

wireguard 一键安装脚本

1
2
3
sudo -i

yum install -y wget

v2ray一键脚本

1 升级内核

一键命令

1
wget https://raw.githubusercontent.com/yobabyshark/wireguard/master/wireguard_install.sh && chmod +x wireguard_install.sh && ./wireguard_install.sh

选择1 更新 内核
重启后 在执行上面的命令
选择2 安装

1
cat /etc/wireguard/client.conf

复制配置信息

客户端

安卓版

google play 安装 wireguard

windows版

https://tunsafe.com/download

ios

tunsafe:https://testflight.apple.com/join/9gbYAJLB
wireguard:https://testflight.apple.com/join/63I19SDT

MAC版使用

  • 安装官网工具 brew install wireguard-tools
  • 把配置文件复制保存成 wrieguard.conf(conf结尾)的文件
  • command + shift + .找到/etc 创建 wireguard 文件夹
  • 将文件复制到wireguard
  • 关闭wg wg-quick down 指原网卡的名字 一般为 wgopenwrt
  • 开启wg wg-quick up wireguard
[Interface]
PrivateKey = 2C0aWJ9nKp8wovQu6h68ZBBYX2cxzh3nfVxEVpAtgHo=
Address = 10.0.0.2/24
DNS = 8.8.8.8
MTU = 1420
[Peer]
PublicKey = 5Q2o+ZOsS5ygpJsX/mmx/umFlPbjBWrC/p18nVqCKm4=
Endpoint = 35.200.98.182:24090
AllowedIPs = 0.0.0.0/0, ::0/0
PersistentKeepalive = 25

支付宝打赏 微信打赏

打赏